<?php
namespace App\Service\Admin;

class UserService extends BaseService
{
    //用户

    //游客
    public static function visitList()
    {
        $db = self::dbConn(self::$dbVisit)->where('openid', '');
        $total = $db->count();
        $res = $db->orderBy('id', 'asc')->get();
        return self::toback(0, '', $res, $total);
    }

    //微信用户
    public static function wxList()
    {
        $db = self::dbConn(self::$dbWx);
        $total = $db->count();
        $res = $db->orderBy('id', 'asc')->get();
        return self::toback(0, '', $res, $total);
    }
}